

#import "UIScreen+iPhone5.h"

@implementation UIScreen (iPhone5)

- (BOOL)isiPhone5 {
    return (self.bounds.size.height > 480);
}

- (BOOL)isRetinaDevice {
    static float scale = 0.0f;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        scale = [UIScreen mainScreen].scale;
    });
    return (scale == 2.0f);
}

@end
